<?php 
// token.php
require '../vendor/autoload.php';

//set this to false to use in production
$sandbox = true;

$oauth_handler = new \Evernote\Auth\OauthHandler($sandbox);

$key = '%spicalfreep%';
$secret = '%fa2d8d1e7ef610a5%';
$callback = 'http://localhost/enote/app/evernote-cloud-sdk-php/sample/oauth/index.php';

$oauth_data  = $oauth_handler->authorize($key, $secret, $callback);

echo "\nOauth Token : " . $oauth_data['oauth_token'];
?>